<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
*{
   margin:0px;
   padding:0px;
}
ul li{
   list-style: none;
}
.li_css{
    width:150px;
    height:35px;
    color:white;
    text-align:center;
    margin-top:5px;
    line-height:35px;
    background-color: green;
    
}
</style>
<body>
<div id="all_page">
	<ul>
		<c:forEach items="${list }" var="v">
			<li><div class="li_css" id="${v.memuid}">${v.memuname }</div></li>
		</c:forEach>
	</ul>
</div>
		<script type="text/javascript" src="../js/jquery-3.1.0.js"></script>
	<script type="text/javascript">
	// window.location.href="../LeftMemuServlet?method=queryManneger";
 	$(function(){
		/*			$.ajax({ 
	       type: "post", 
	       url: "../LeftMemuServlet?method=queryManneger", 
	       cache:false, 
	       async:false, 
	       dataType:"json", 
	        ssuccess: function(date){ 
	        	 alert(1);
	     alert(date);
	        } 

	}); */
		 $.getJSON("../LeftMemuServlet?method=queryManneger&"+new Date(), {},
			function(date) {
				if (date == "0") {
				//	window.location.href="../yf/test.jsp";
			//	$("#all_page").load("../yf/test.jsp");
				}
			})  
	})  


			
			 	/*	$("#rightdiv").load("../yf/test.jsp");
			$(".li_css").click(function(){
			var v=$(this).attr("id");
		alert(v); 
			})*/
			 $.getJSON("../LeftMemuServlet?method=queryManneger", {},
						function(date) {
							if (date == "0") {
							//	window.location.href="../yf/test.jsp";
						//	$("#all_page").load("../yf/test.jsp");
							}
						})

	</script>
</body>